import request from '@/utils/request'

// 查询自动打招呼列表
export function listAutogreet(query) {
  return request({
    url: '/chatnotify/autogreet/list',
    method: 'get',
    params: query
  })
}

// 查询自动打招呼详细
export function getAutogreet(id) {
  return request({
    url: '/chatnotify/autogreet/' + id,
    method: 'get'
  })
}

// 新增自动打招呼
export function addAutogreet(data) {
  return request({
    url: '/chatnotify/autogreet',
    method: 'post',
    data: data
  })
}

// 修改自动打招呼
export function updateAutogreet(data) {
  return request({
    url: '/chatnotify/autogreet',
    method: 'put',
    data: data
  })
}

// 删除自动打招呼
export function delAutogreet(id) {
  return request({
    url: '/chatnotify/autogreet/' + id,
    method: 'delete'
  })
}

// 导出自动打招呼
export function exportAutogreet(query) {
  return request({
    url: '/chatnotify/autogreet/export',
    method: 'get',
    params: query
  })
}
